package io.renren.modules.weixin.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * @author: Mr-wang
 * @date: 2018/4/18 0018 10:20
 * @Description:
 */
@TableName("wx_token")
public class AccessToken  implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    private int id;

    // 获取到的凭证
    private String token;
    // 凭证有效时间，单位：秒
    private Date expiresIn;

    public Date getExpiresIn() {
        return expiresIn;
    }

    public void setExpiresIn(Date expiresIn) {
        this.expiresIn = expiresIn;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
}